package com.hai.boot.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import com.hai.boot.pojo.DetailedInfo;
import com.hai.boot.service.DetailedInfoService;

@Controller
public class DetailedInfoController {
	@Autowired
	private DetailedInfoService detailedInfoService;
	@RequestMapping("/_table{id}")
	public String ToDetailedInfo(@PathVariable("id") long id,Model model) {
		DetailedInfo detailedInfo = detailedInfoService.getById(id);
		model.addAttribute("info", detailedInfo);
		return "_table";
	}
}
